import request from '@/config/axios'

//获取数据库资产列表
export const getDbTreeList = async (params) => {
  return await request.getOriginal({
    url: '/amp/asset-message/dbSonList',
    params
  })
}
//获取数据库资产列表
export const getAssetByLevel = async (params) => {
  return await request.getOriginal({
    url: '/amp/asset-message/page',
    params
  })
}
//更新资产分类分级信息
export const assetUpdateLevel = async (data) => {
  return await request.put({
    url: '/amp/asset-message/updateLevel',
    data: data
  })
}
//批量更新资产分级信息
export const assetUpdateLevelList = async (data) => {
  return await request.put({
    url: '/amp/asset-message/updateLevels',
    data: data
  })
}
//批量更新资产分类信息
export const assetUpdateClassifyList = async (data) => {
  return await request.put({
    url: '/amp/asset-message/updateClassifications',
    data: data
  })
}
